//index.js
const TAG = "index"
//获取应用实例
const app = getApp()

Page({
    data: {
        //swiper
        indicatorDots: true,
        vertical: false,
        autoplay: true,
        interval: 1000,
        duration: 1000,
        //gird
        swiper_datas: [
            {
                url: "http://kookong.com/static/img/ir7.png",
                name: "OSC中国"
            },
            {
                url: "https://gitee.com/index/ent_poster/banner_5_1_a.png",
                name: "OSC中国"
            }, {
                url: "http://kookong.com/static/img/ir7.png",
                name: "OSC中国"
            }, {
                url: "https://gitee.com/index/ent_poster/banner_5_1_a.png",
                name: "OSC中国"
            }, {
                url: "http://kookong.com/static/img/ir7.png",
                name: "OSC中国"
            }, {
                url: "https://gitee.com/index/ent_poster/banner_5_1_a.png",
                name: "OSC中国"
            }
        ]
    },
    onLoad: function () {
        console.log(TAG, "onLoad")
    },

    onItemClick: function (event) {
        console.log(TAG, "onItemClick:" + event.target.id)
    },
    onTitleClick: function (event) {
        console.log(TAG, event)
        wx.navigateTo({
            url: '../about/about'
        })
    },
    onServiceClick: function (event) {
        wx.navigateTo({
            url: '../service/service'
        })
    },
    onCustomerClick: function (event) {
        wx.navigateTo({
            url: '../customer/customer'
        })
    }
})
